<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Unicode character classes</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="parle.regex.charclass.html">« Character classes</a></li>
      <li style="float: right;"><a href="parle.regex.alternation.html">Alternation and repetition »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="parle.pattern.matching.html">Pattern matching</a></li>
    <li>Unicode character classes</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="parle.regex.unicodecharclass" class="section">
  <h2 class="title">Unicode character classes</h2>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Unicode character classes</strong></caption>
    
     <thead>
      <tr>
       <th>Sequence</th><th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>\p{C}</td><td>Other.</td>
      </tr>

      <tr>
       <td>\p{Cc}</td><td>Other, control.</td>
      </tr>

      <tr>
       <td>\p{Cf}</td><td>Other, format.</td>
      </tr>

      <tr>
       <td>\p{Co}</td><td>Other, private use.</td>
      </tr>

      <tr>
       <td>\p{Cs}</td><td>Other, surrogate.</td>
      </tr>

      <tr>
       <td>\p{L}</td><td>Letter.</td>
      </tr>

      <tr>
       <td>\p{LC}</td><td>Letter, cased.</td>
      </tr>

      <tr>
       <td>\p{Ll}</td><td>Letter, lowercase.</td>
      </tr>

      <tr>
       <td>\p{Lm}</td><td>Letter, modifier.</td>
      </tr>

      <tr>
       <td>\p{Lo}</td><td>Letter, other.</td>
      </tr>

      <tr>
       <td>\p{Lt}</td><td>Letter, titlecase.</td>
      </tr>

      <tr>
       <td>\p{Lu}</td><td>Letter, uppercase.</td>
      </tr>

      <tr>
       <td>\p{M}</td><td>Mark.</td>
      </tr>

      <tr>
       <td>\p{Mc}</td><td>Mark, space combining.</td>
      </tr>

      <tr>
       <td>\p{Me}</td><td>Mark, enclosing.</td>
      </tr>

      <tr>
       <td>\p{Mn}</td><td>Mark, nonspacing.</td>
      </tr>

      <tr>
       <td>\p{N}</td><td>Number.</td>
      </tr>

      <tr>
       <td>\p{Nd}</td><td>Number, decimal digit.</td>
      </tr>

      <tr>
       <td>\p{Nl}</td><td>Number, letter.</td>
      </tr>

      <tr>
       <td>\p{No}</td><td>Number, other.</td>
      </tr>

      <tr>
       <td>\p{P}</td><td>Punctuation.</td>
      </tr>

      <tr>
       <td>\p{Pc}</td><td>Punctiation, connector.</td>
      </tr>

      <tr>
       <td>\p{Pd}</td><td>Punctuation, dash.</td>
      </tr>

      <tr>
       <td>\p{Pe}</td><td>Punctuation, close.</td>
      </tr>

      <tr>
       <td>\p{Pf}</td><td>Punctuation, final quote.</td>
      </tr>

      <tr>
       <td>\p{Pi}</td><td>Punctuation, initial quote.</td>
      </tr>

      <tr>
       <td>\p{Po}</td><td>Punctuation, other.</td>
      </tr>

      <tr>
       <td>\p{Ps}</td><td>Punctuation, open.</td>
      </tr>

      <tr>
       <td>\p{S}</td><td>Symbol.</td>
      </tr>

      <tr>
       <td>\p{Sc}</td><td>Symbol, currency.</td>
      </tr>

      <tr>
       <td>\p{Sk}</td><td>Symbol, modifier.</td>
      </tr>

      <tr>
       <td>\p{Sm}</td><td>Symbol, math.</td>
      </tr>

      <tr>
       <td>\p{So}</td><td>Symbol, other.</td>
      </tr>

      <tr>
       <td>\p{Z}</td><td>Separator.</td>
      </tr>

      <tr>
       <td>\p{Zl}</td><td>Separator, line.</td>
      </tr>

      <tr>
       <td>\p{Zp}</td><td>Separator, paragraph.</td>
      </tr>

      <tr>
       <td>\p{Zs}</td><td>Separator, space.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   These character clasess are only available, if the option --enable-parle-utf32 was passed at the compilation time.
  </p>
 </div></div></div></body></html>